// 	Name: 07.c
//	Description: Chapter 6 project 7
//	Author: StableGenius
//	Date: 2020-07-09
//	Email: feng@dongfa.pro

#include <stdio.h>

int main(void) {
	int i, n, odd, square;

	printf("This program prints a table of squares.\n");
	printf("Enter number of entries in table: ");
	scanf("%d", &n);

	for (i = 1, odd = 3, square = 1; i <= n; odd += 2, i++)
	{
		printf("%10d%10d\n", i, square);
		square += odd;
	}

	return 0;
}
